package com.liao.myblog.dao;

import com.liao.myblog.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

@Mapper
@Repository
public interface AdminMapper {
    Admin adminLogin(@RequestParam(value = "username") String username, @RequestParam(value = "password") String password);

    Admin adminLogin1(@RequestParam(value = "username") String username);

    int updateName(@RequestParam(value = "username") String username, @RequestParam(value = "nickName") String nickName, @RequestParam(value = "id") int id);

    Admin queryAdmin(@RequestParam(value = "id") int id);

    int updatePwd(@RequestParam(value = "id") int id, @RequestParam(value = "password") String password);
}
